<?php

class haywan{
    public function __construct(){
        echo "bu haywannig tot pute bar ";
    }

}
class kala extends haywan{
    public function yaydu(){
        echo ' kala kunda saman yaydu!';
    }
}
class mozay extends kala{
    public function im(){
        echo 'bu mozay kalini imidu';
        $this->yaydu();
    }
}
//$kala=new kala();
//$kala->yaydu();

//$kala=new mozay();
//$kala->im();

$kala=new haywan();

//class muxuk extends haywan{
//    public function muxukk(){
//        echo 'bu ber muxuk';
//    }
//}
//
//$muxuk=new muxuk();
//$muxuk->muxukk();
//
